﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<BGCMS.Models.QuestionIndexViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Spurt & Svarað
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="leftside">
        <h2>
            Greinar</h2>
        <ul>
            <% foreach (var k in Model.Keywords)
               { %>
            <li>
                <%: Html.ActionLink(k.Title, "ListOfArticlesByKeyword", "Home", new { k.ID }, null) %></li>
            <% } %>
        </ul>
    </div>
    <div id="spurnlisti">
        <h2>
            Spurt & Svarað</h2>
        <ul>
            <% foreach (var q in Model.Questions)
               { %>
            <li>
                <%: Html.ActionLink(q.Title, "Question", new { id = q.ID }) %></li>
            <% } %>
        </ul>
    </div>
</asp:Content>